/**
 * 	 Copyright (c) 2008, 2009 Lukas Zaruba
 * 
 *   This file is part of UniAnalyzer (Universal Analyzer).
 *
 *   UniAnalyzer is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   UniAnalyzer is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Lesser General Public License for more details.
 *
 *   You should have received a copy of the GNU Lesser General Public License
 *   along with UniAnalyzer. If not, see <http://www.gnu.org/licenses/>.
 */

package net.zarubsys.unianalyzer.dataminers.lpt.internal.impl;

import net.zarubsys.unianalyzer.dataminers.lpt.triggers.ITrigger;

/**
 * Trigger
 *
 * @author  &lt;A HREF=&quot;mailto:lukas.zaruba@media-solutions.cz&quot;&gt;Lukas Zaruba&lt;/A&gt;, MEDIA SOLUTIONS CZECH REPUBLIC Ltd.
 * @version $Revision$ $Date$
 */
public class Trigger implements ITrigger {
	
	private static final long serialVersionUID = 5116778926899661227L;
	
	private final int mask;
	private final long maxWaitingInterval;
	private final int firstResult;
	private final int secondResult;
	
	public Trigger(int mask, int firstResult, int secondResult, long maxWaitingInterval) {
		super();
		this.mask = mask;
		this.maxWaitingInterval = maxWaitingInterval;
		this.firstResult = firstResult;
		this.secondResult = secondResult;
	}

	public int getMask() {
		return mask;
	}

	public long getMaxWaitInterval() {
		return maxWaitingInterval;
	}

	public String toString() {
		return "Trigger - mask: \"" + mask + "\", result: \"" + firstResult + ", " + secondResult + "\", maxWaitingInterval: \"" + maxWaitingInterval + "ns\"";
	}

	public int getFirstResult() {
		return firstResult;
	}

	public int getSeconResult() {
		return secondResult;
	}

}


/*
 * $Log$
 */